/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.model;

import com.yunhoo.sys.util.common.LoginParam;
import com.yunhoo.sys.util.tree.TreeModel;

/**
 * 固定资产国标码
 *
 * @author Administrator
 */
public class AssetGBCode extends TreeModel {

    private String unit;//记录单位
    private String memo;

    public AssetGBCode() {
        super.setOrgCode(LoginParam.getOrg().getCode());
    }

    public AssetGBCode(boolean initWithLoginInfo) {
        super(initWithLoginInfo);
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public boolean equals(AssetGBCode asset) {
        if (asset == null || asset.getCode() == null || asset.getCode().isEmpty()) {
            return false;
        }
        String code = super.getCode();
        if (code == null || code.isEmpty()) {
            return false;
        }
        return code.equals(asset.getCode()); //To change body of generated methods, choose Tools | Templates.
    }
}
